home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / c / bchelp10.zip / TI661.ASC < prev    next >
Text File  |  1991-09-11  |  1KB  |  67 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.   PRODUCT  :  Borland C++                            NUMBER  :  661
  9.   VERSION  :  2.0
  10.        OS  :  PC DOS
  11.      DATE  :  September 11, 1991                       PAGE  :  1/1
  12.  
  13.     TITLE  :  Windows CALLBACK Must Be Exported
  14.  
  15.  
  16.  
  17.  
  18.   All callback functions must be exported (unless you  use  the -WS
  19.   Smart Callbacks option).  You can either export  via  the _export
  20.   keyword in the function definition (i.e., on the prototype if one
  21.   is present) or by listing the function in the EXPORTS  section of
  22.   the .def file.
  23.  
  24.   Following are the appropriate  command  line  options (in the IDE
  25.   under  menu Options | Compiler | Entry/Exit Code):
  26.  
  27.      1.  If function definition includes keyword _export
  28.          a. -W (Windows all functions exportable)
  29.          b. -WE (Windows explicit function exported)
  30.  
  31.      2.  If function listed in .def file
  32.          a. -W (Windows all functions exportable)
  33.  
  34.      3.  Compile with -WS (Windows Smart Callbacks)
  35.          {won't work when building DLL's, see documentation for
  36.           special effects of this option}
  37.  
  38.      4.  For building DLL's, use:
  39.           a. -WD (Windows DLL all functions exportable)
  40.           b. -WDE (Windows DLL explicit functions exported)
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.